package com.stefanini.pe.bbva.iivs.in.bo;

import java.util.List;

import com.stefanini.pe.bbva.iivs.in.bo.iface.TareaService;
import com.stefanini.pe.bbva.iivs.in.dao.iface.TareaDAO;
import com.stefanini.pe.bbva.iivs.in.to.Tarea;
import com.stefanini.pe.bbva.iivs.in.to.UsuarioLDAP2;

public class TareaServiceImpl implements TareaService{

	private TareaDAO tareaDAO;
	
	public TareaServiceImpl(TareaDAO tareaDAO) {
		this.tareaDAO=tareaDAO;
	}

	public int deleteByPrimaryKey(String codTarea) {
		return this.tareaDAO.deleteByPrimaryKey(codTarea);
	}

	public void insert(Tarea record) {
		this.tareaDAO.insert(record);
	}

	public void insertSelective(Tarea record) {
		this.tareaDAO.insertSelective(record);
	}

	public Tarea selectByPrimaryKey(String codTarea) {
		return this.tareaDAO.selectByPrimaryKey(codTarea);
	}
	
	public int updateByPrimaryKey(Tarea record) {
		return this.tareaDAO.updateByPrimaryKey(record);
	}

	public int updateByPrimaryKeySelective(Tarea record) {
		return this.tareaDAO.updateByPrimaryKeySelective(record);
	}
	
	public List<Tarea> selectByUser(UsuarioLDAP2 usuario) {
		return this.tareaDAO.selectByUser(usuario);
	}

	public List<Tarea> selectDynamicWhere(Tarea tarea) {
		return this.tareaDAO.selectDynamicWhere(tarea);
	}
}
